#!/bin/bash

if [ ! -n "$JAVA_HOME" ]; then
  echo set JAVA_HOME.
  exit 1
else
  if [ ! -e gps.jar ]; then
  	echo Error: gps.jar not found. Place it right next to this file 
  	exit 1
  fi	
	
  $JAVA_HOME/bin/java -cp gps.jar de.fhluebeck.oop.gps.gui.Gps $@	
fi